Skip to content

Add thinktank undo command to reverse last applied diff#113

Merged
that-github-user merged 1 commit into
mainfrom
issue-67-undo
Mar 28, 2026
Merged

Add thinktank undo command to reverse last applied diff#113
that-github-user merged 1 commit into
mainfrom
issue-67-undo

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • thinktank apply now saves diff to .thinktank/last-applied.patch
  • thinktank undo reverses the last applied diff via git apply --reverse
  • Actionable error if no patch exists
  • 3 new tests

Generated by thinktank Opus — 5 agents, 4/5 pass, Copeland: Agent #1 at +3.

Change type

  • New feature

Related issue

Closes #67

How to test

npm test  # 134 tests pass
thinktank run "task" -n 2 && thinktank apply
thinktank undo  # reverses the apply

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

Apply now saves the diff to .thinktank/last-applied.patch. thinktank undo
reads this patch and runs git apply --reverse. Clear error if no patch exists.

Generated by thinktank Opus (5 agents, 4 pass, Copeland: #1 at +3).

Closes #67

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user that-github-user merged commit 3e75163 into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-67-undo branch March 28, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add to undo the last applied diff

1 participant